package com.kx.controller;

import com.kx.service.ParkingSpaceService;
import com.kx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class BlacklistController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "/findBlacklistUser",method = RequestMethod.GET)
    @ResponseBody
    public Object findBlackData(@RequestParam("page") Integer page, @RequestParam("limit") Integer limit) {
        return userService.findBlackData(page, limit);
    }

}